<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><script type='text/javascript' src='http://127.0.0.1/cooldreamer/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

<script type="text/javascript" src="http://127.0.0.1/cooldreamer/Template/style/js/js.js"></script>
<div class="dingbu" style="height:30px; background:#959595; line-height:30px;">
    <div class="w980 bc clearfix">
        <div class="login fr">
            <a href="javascript:;" class="log">登录</a>
            <a href="javascript:;" class="reg">注册</a>
        </div>
        <div class="huanying fr" style="display:none">
            欢迎[某某]回来
            <a href="">['退出登录']</a>
        </div>
    </div>
</div>
<div class="zz"></div>
<div class="logbox p10">
    <p>登录</p><br/>
    <form action="" method="post">
        账号：<input type="text" name="username" id=""><br/><br/>
        密码：<input type="password" name="password" id=""><br/><br/>
        <div class="yzm">
            验证码<input type="text" name="code" id="">
            <img src="<?php echo U('Login/code');?>" onclick="this.src=this.src + '&' + Math.random()" />
            <br/><br/>
        </div>
        <input type="submit" value="登录">
    </form>
</div>

<div class="regbox p10">
    <p>登录</p><br/>
    <form action="" method="post">
        账号：<input type="text" name="username" id=""><br/><br/>
        密码：<input type="password" name="password" id=""><br/><br/>
        <div class="yzm">
            验证码<input type="text" name="code" id="">
            <img src="<?php echo U('Login/code');?>" onclick="this.src=this.src + '&' + Math.random()" />
            <br/><br/>
        </div>
        <input type="submit" value="登录">
    </form>
</div>

<div class="top w980 bc clearfix">
	<img src="http://127.0.0.1/cooldreamer/Template/style/images/index_02.jpg" class="fl" />
    <div class="fr topbox">
        <!-- 
        <a href="">
            <img src="http://127.0.0.1/cooldreamer/Template/style/images/index_05.jpg" />
            常见问题
        </a>
        <a href="">
            <img src="http://127.0.0.1/cooldreamer/Template/style/images/index_07.jpg" />
            人才招聘
        </a>
        <a href="">
            <img src="http://127.0.0.1/cooldreamer/Template/style/images/index_09.jpg" />
            下载专区
        </a>
         -->
    </div>
</div>
<div class="nav w">
	<ul class="w980 bc navlist">
    	<li <?php if(!Q('get.cid')){?>class="thisClass"<?php }?>>
            <a href="http://127.0.0.1/cooldreamer/index.html">网址首页</a>
        </li>
        <?php $cate = K('Category')->where('is_show=1 and is_nav=1')->limit()->order('csort DESC')->all(); ?>
<?php if(is_array($cate)):?><?php  foreach($cate as $field){ ?>
<?php 
$field['curl'] = get_cate_url($field['is_listhtml'],$field['htmldir'],$field['cid']);
$field['class'] = $field['cid'] == Q('get.cid') ? thisClass : '';
?>

            <li class="<?php echo $field['class'];?>">
                <a href="<?php echo $field['curl'];?>"><?php echo $field['cname'];?></a>
            </li>
        
<?php }?><?php endif;?>
    </ul>
</div>